package com.gec.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.dto.DishDto;
import com.gec.entity.Dish;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author : [chenxys]
 * @version : [v1.0]
 * @createTime : [2022/7/9 13:55]
 */
public interface DishService extends IService<Dish> {
    void saveWithFlavor(DishDto dishDto);

    DishDto getByIdWithFlavor(Long id);

    void updateBatchByIds(Integer code, Long[] ids);

    void updateByDishDto(DishDto dishDto);

    void removeByIdsWithFlavor(List<Long> asList);

    IPage<DishDto> pages(IPage<Dish> pageInfo,String name);

    List<DishDto> listByDish(Dish dish);
}
